<%@page contentType="text/html; charset=utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<meta http-equiv="pragma" content="no-cache" />
<meta http-equiv="cache-control" content="no-cache" />
<meta http-equiv="expires" content="0" />

<form id="pagerForm" method="post" action="findInform">
	<input type="hidden" name="pageNum" value="1" /> <input type="hidden"
		name="numPerPage" value="${numPerPage}" /> <input type="hidden"
		name="orderField" value="${orderField}" /> <input type="hidden"
		name="orderDirection" value="${orderDirection}" />
</form>
<div class="pageHeader">
	<form rel="pagerForm" onsubmit="return navTabSearch(this);"
		action="findInform" method="post">
		<div class="searchBar">
			<table class="searchContent">
				<tr>
					<td><input type="hidden" name="functionNum"
						value="hxlbookad0012"> 读者编号： <input type="text"
						id="userId" name="userId" value="${userId}" /></td>
					<td>公告标题： <input type="text" id="name" name="name"
						value="${name}" />
					</td>
				</tr>
			</table>
			<div class="subBar">
				<ul>
					<li>
						<div class="buttonActive">
							<div class="buttonContent">
								<button type="submit">查看</button>
							</div>
						</div>
					</li>
					<li>
						<div class="buttonActive">
							<div class="buttonContent">
								<button id="reset20">重置</button>
							</div>
						</div>
					</li>
				</ul>
			</div>
		</div>
	</form>
</div>
<div class="pageContent">
	<div class="panelBar">
		<ul class="toolBar">
			<li><a class="add" href="addInform?functionNum=hxlbookad0013"
				target="dialog" rel="addInform" mask="true" maxable=false
				minable=false resizable=false><span>添加</span> </a></li>
			<li><a title="确实要删除这些记录吗?" target="selectedTodo" rel="ids"
				postType="string" href="delete_Inform_dwz?functionNum=hxlbookad0014"
				class="delete"><span>删除</span> </a></li>
			<li><a class="edit"
				href="beforeUpdateInform?id={sid_user}&functionNum=hxlbookad0015"
				target="dialog" rel="UpdateInform" mask="true" maxable=false
				minable=false resizable=false warn="请选择一条通告信息"><span>修改</span> </a>
			</li>
			<li><a class="edit" href="findDetailInform?id={sid_user}"
				target="dialog" rel="findDetailInform" mask="true" maxable=false
				minable=false resizable=false warn="请选择一条通告信息"><span>查看</span> </a>
			</li>
		</ul>
	</div>
	<table class="table" layoutH="138" targetType="navTab" asc="asc"
		desc="desc">
		<thead>
			<tr>
				<th width="22" align="center"><input type="checkbox"
					group="ids" class="checkboxCtrl"></th>
				<th width="100" align="center">读者编号</th>
				<th width="150" align="left">通告标题</th>
			</tr>
		</thead>
		<tbody>
			<s:iterator id="inform" value="informList">
				<tr target="sid_user" rel="${inform.id}">
					<td align="center"><input name="ids" value="${inform.id}"
						type="checkbox"></td>
					<td>${inform.userInfo.userId}</td>
					<td>${inform.name}</td>
				</tr>
			</s:iterator>
		</tbody>
	</table>
	<div class="panelBar">
		<div class="pages">
			<span>显示</span> <select class="combox" name="numPerPage"
				onchange="navTabPageBreak({numPerPage:this.value})">
				<option <s:if test="numPerPage==1">selected="selected"</s:if>
					value="1">1</option>
				<option <s:if test="numPerPage==5">selected="selected"</s:if>
					value="5">5</option>
				<option <s:if test="numPerPage==10">selected="selected"</s:if>
					value="10">10</option>
				<option <s:if test="numPerPage==15">selected="selected"</s:if>
					value="15">15</option>
				<option <s:if test="numPerPage==20">selected="selected"</s:if>
					value="20">20</option>
			</select> <span>条，共${totalCount}条</span>
		</div>

		<div class="pagination" targetType="${targetType}"
			totalCount="${totalCount}" numPerPage="${numPerPage}"
			pageNumShown="10" currentPage="${pageNum}"></div>

	</div>
</div>
<script type="text/javascript">
$(function($) {
	$("#reset20").click(function() {
		$('#userId').attr('value', "");
		$('#name').attr('value', "");
	});
});
</script>
